﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="AdminFAQs.aspx.cs" Inherits="EHTSaleManager.UIAdmin.AdminFAQs" %>

<%@ Register Src="~/UIAdmin/Control/PaggingControl.ascx" TagName="PaggingControl"
    TagPrefix="EHT" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

  <h1><asp:Label ID="lbAdminCustomer" runat="server" Text="FAQs Leder"></asp:Label>
        
    </h1>
    <table width="100%">
        <tr>
            <td>
                 <asp:DropDownList ID="ddlFAQs" runat="server" 
        onselectedindexchanged="ddlFAQs_SelectedIndexChanged" AutoPostBack="true">
        <asp:ListItem Text="-------------All-------------" Value="-1"></asp:ListItem>
        <asp:ListItem Text="HVORDAN HANDLE" Value="1"></asp:ListItem>
        <asp:ListItem Text="BETALING" Value="2"></asp:ListItem>
        <asp:ListItem Text="FRAKT & LEVERING" Value="3"></asp:ListItem>
        <asp:ListItem Text="SUPPORT" Value="4"></asp:ListItem>
        <asp:ListItem Text="HVA TILBYR VI" Value="5"></asp:ListItem>
        <asp:ListItem Text="MATT HJEM" Value="6"></asp:ListItem>
    </asp:DropDownList>
            </td>
            <td>
                 <p class="submitButton">
        <asp:Button ID="btnAddFAQs" runat="server" Text="Legg FAQs" 
            style="height: 26px" onclick="btnAddFAQs_Click" />
    </p>   
            </td>
        </tr>
    </table>
     <asp:Repeater ID="rpFQAs" runat="server">
        <HeaderTemplate>
            <table cellspacing="0" width="100%" cellpadding="0" class="data-table">
                <thead>
                    <tr>
                       
                        <th class="actions edit">
                            Edit
                        </th>
                       
                        <th class="actions delete">
                            Slett
                        </th>
                        <th style="width:30%">
                           Tittel
                        </th>
                        <th style="width:60%">
                           Innhold
                        </th>                       
                    </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
               
                <td class="actions edit">
                    <a href='AdminFAQ.aspx?ID=<%#Eval("ID")%>'>
                        <img alt="Edit" src="../Styles/Edit.png"></a>
                </td>
              
                <td class="actions delete">
                    <a href='AdminFAQsConfirmSuccess.aspx?ID=<%#Eval("ID")%>'>
                        <img alt="Delete" src="/Styles/Delete.png"></a>
                </td>                
                <td>
                    <%#Eval("TitleFAQs")%>
                </td>
                <td>
                    <%#Eval("ContentFAQs")%>.........
                </td>
               
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody> </table>
        </FooterTemplate>
    </asp:Repeater>
  
   
        <p>
        <eht:paggingcontrol id="PaggingControl1" runat="server" pageurl="AdminFAQs.aspx"
            pagesize="10" />
    </p>
    
    
    

</asp:Content>
